NetProg

 


   

NETPROG  PRESENTATION

 

  OverView
  Functionalities
  Programming
API
C Examples
  Download

 

 
Examples
 
IP client server Connection Dialog Examples
TCP yes yes IP_PROTO_TCP TCP example
FTP yes no IP_PROTO_FTP FTP example
HTTP yes no IP_PROTO_HTTP HTTP example
SMTP yes no IP_PROTO_SMTP SMTP example
POP yes no IP_PROTO_POP POP example
DNS yes no IP_PROTO_DNS DNS example
DG yes yes IP_PROTO_DG USER_DEFINED example
IO          
STORE yes - IO_PROTO_STORE ANY  example
FIXED SIZE yes - IO_PROTO_FIOP  USER_DEFINED example
DATABASE          
ODBC yes - DB_PROTO_ODBC  DB example
ORACLE yes  -  DB_PROTO_ORACLE  DB example 
SQL/DS      DB_PROTO_SQLDS  DB example 
 

RESOURCES Predefined Dialog Classes

 

DIALOGCLASS 0 *TCP*
BEGIN
MESSAGECLASS Stream (BUFFER Buffer)
END



DIALOGCLASS 30000 *DG*
BEGIN
MESSAGECLASS SendFile (STRING Command LONG Identity SHORT NbFiles SHORT NbFile FILE File)
MESSAGECLASS GetFiles (STRING Command LONG Identity STRING FileNames STRING LocalRepertory CHAR FileType CHAR LocalFileLoc CHAR DistantFileLoc)
MESSAGECLASS GetFile (STRING Command LONG Identity STRING FileName STRING DestName CHAR FileType CHAR LocalFileLoc CHAR DistantFileLoc)
MESSAGECLASS RemoveFiles (STRING Command LONG Identity STRING FileNames CHAR FileLoc)
MESSAGECLASS RenameFile (STRING Command LONG Identity STRING OldName STRING NewName CHAR FileLoc)
MESSAGECLASS FileReply (STRING Command LONG Identity STRING FileName SHORT NbFiles SHORT NbFile LONG Error)
MESSAGECLASS ChangeDir (STRING Command LONG Identity STRING NewDir CHAR FileLoc)
MESSAGECLASS MakeDir (STRING Command LONG Identity STRING Dir CHAR FileLoc)
MESSAGECLASS RemoveDir (STRING Command LONG Identity STRING Dir CHAR FileLoc)
MESSAGECLASS GetDir (STRING Command LONG Identity CHAR FileLoc)
MESSAGECLASS DirReply (STRING Command LONG Identity STRING Dir LONG Error)
MESSAGECLASS PutError (STRING Param LONG Identity SHORT Stop LONG Error)
MESSAGECLASS AckMessage (LONG Identity DWORD Date DWORD Hour LONG Error)
MESSAGECLASS SendClassConnection (STRING Name WORD Port WORD Code STRING TableName BYTE FromTo)
MESSAGECLASS ReplyClassConnection (STRING Name LONG Error)
MESSAGECLASS List (STRING Command LONG Identity STRING Name CHAR FileLoc)
MESSAGECLASS ListReply (STRING Command LONG Identity STRING Name STRING Access STRING Date BYTE Type LONG Size SHORT NbFiles SHORT NbFile)
MESSAGECLASS Dir (STRING Command LONG Identity STRING Name CHAR FileLoc)
MESSAGECLASS GDirReply (STRING Command LONG Identity BUFFER Buffer)
END

 

DIALOGCLASS 53 *DNS*
BEGIN
MESSAGECLASS Query (LONG Identity WORD Operation WORD QClass WORD QType STRING Domain BUFFER RecordData)
MESSAGECLASS Reply (LONG Identity WORD Operation WORD QClass WORD QType STRING Domain WORD Code WORD AnswerCount WORD AuthorityCount WORD AdditionalCount WORD[60] Section STRING[60] Name WORD[60] Type STRING[60] Value)
END

DIALOGCLASS 21 *FTP*
BEGIN
MESSAGECLASS Command (LONG Identity STRING Value STRING Par)
MESSAGECLASS Command_Reply (LONG Identity STRING Value STRING Par LONG Code STRING Reply)
MESSAGECLASS dir (LONG Identity STRING Value STRING Par STRING NetId LONG Port)
MESSAGECLASS dir_reply (LONG Identity STRING Value STRING Par LONG Error STRING NetId LONG Port BUFFER Buffer)
MESSAGECLASS get (LONG Identity STRING FileName STRING DestName CHAR FileType STRING NetId LONG Port)
MESSAGECLASS get_reply (LONG Identity STRING Value LONG Error STRING NetId LONG Port FILE File)
MESSAGECLASS put (LONG Identity FILE File STRING NetId LONG Port)
MESSAGECLASS put_reply (LONG Identity STRING Value LONG Error STRING FileName STRING DestName STRING NetId LONG Port)
END


DIALOGCLASS 80 *HTTP*
BEGIN
MESSAGECLASS Request (STRING Request-Line STRING Cache-Control STRING Connection STRING Date STRING Pragma STRING Trailer STRING Transfer-Encoding STRING Upgrade STRING Via STRING Warning STRING Accept STRING Accept-Charset STRING Accept-Encoding STRING Accept-Language STRING Authorization STRING Expect STRING From STRING Host STRING If-Match STRING If-Modified-Since STRING If-None-Match STRING If-Range STRING If-Unmodified-Since STRING Max-Forwards STRING Proxy-Authorzation STRING Range STRING Referer STRING TE STRING User-Agent STRING Allow STRING Content-Encoding STRING Content-Language STRING Content-Length STRING Content-Location STRING Content-MD5 STRING Content-Range STRING Content-Type STRING Expires STRING Last-Modified STRING Proxy-Connection STRING Cookie BUFFER Content)
MESSAGECLASS Response (STRING Status-Line STRING Cache-Control STRING Connection STRING Date STRING Pragma STRING Trailer STRING Transfer-Encoding STRING Upgrade STRING Via STRING Warning STRING Accept-Ranges STRING Age STRING Etag STRING Location STRING Proxy-Connection STRING Retry-After STRING Server STRING Vary STRING WWW-Authenticate STRING Allow STRING Content-Encoding STRING Content-Language STRING Content-Length STRING Content-Location STRING Content-MD5 STRING Content-Range STRING Content-Type STRING Expires STRING Last-Modified STRING P3P STRING Content-Type BUFFER Content)
END

DIALOGCLASS 110 *POP*
BEGIN
MESSAGECLASS Command (LONG Identity STRING Value STRING Par)
MESSAGECLASS Command_Reply (LONG Identity STRING Value STRING Par LONG Code STRING Reply)
MESSAGECLASS List_Reply (LONG Identity STRING Value STRING Par STRING Reply LONG Code LONG[60] Number LONG[60] Size LONG TotalNumber LONG TotalSize)
MESSAGECLASS Stat_Reply (LONG Identity STRING Value STRING Par STRING Reply LONG Code LONG TotalNumber LONG TotalSize)
MESSAGECLASS Retr_Reply (LONG Identity STRING Value STRING Par STRING Reply LONG Code LONG Size STRING Date STRING From STRING[200] To STRING[200] Cc STRING[200] Bcc STRING Subject STRING Body)
END

DIALOGCLASS 25 *SMTP*
BEGIN
MESSAGECLASS Command (LONG Identity STRING Value STRING Par)
MESSAGECLASS Command_Reply (LONG Identity STRING Value STRING Par LONG Code STRING Reply)
MESSAGECLASS Send (LONG Identity STRING From STRING To STRING Cc STRING Bcc STRING Object STRING Subject STRING Attachment)
END