WinSockNetEvents.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define WINSOCK_VERSION_MAJOR   1
#define WINSOCK_VERSION_MINOR   1

Functions

boolean fwsNetEventQuit (void)
boolean fwsNetEventShutDown (void)
void fwsNetEventShutdownDependentListeners (long hdatabase)
boolean fwsNetEventAddressDecode (unsigned long addr, bigstring IPaddr)
boolean fwsNetEventAddressEncode (bigstring IPaddr, unsigned long *addr)
boolean fwsNetEventAddressToName (unsigned long addr, bigstring domainName)
boolean fwsNetEventNameToAddress (bigstring domainName, unsigned long *addr)
boolean fwsNetEventMyAddress (unsigned long *addr)
boolean fwsNetEventAbortStream (unsigned long stream)
boolean fwsNetEventCloseStream (unsigned long stream)
boolean fwsNetEventOpenAddrStream (unsigned long addr, unsigned long port, unsigned long *stream)
boolean fwsNetEventOpenNameStream (bigstring name, unsigned long port, unsigned long *stream)
boolean fwsNetEventReadStream (unsigned long stream, unsigned long *bytesToRead, char *buffer)
boolean fwsNetEventWriteStream (unsigned long stream, unsigned long bytesToWrite, char *buffer)
boolean fwsNetEventListenStream (unsigned long, long, bigstring, unsigned long, unsigned long *, unsigned long, long)
boolean fwsNetEventStatusStream (unsigned long stream, bigstring status, unsigned long *bytesPending)
boolean fwsNetEventCloseListen (unsigned long stream)
boolean fwsNetEventGetPeerAddress (unsigned long stream, unsigned long *peeraddress, unsigned long *peerport)
boolean fwsNetEventReadStreamUntil (unsigned long stream, Handle hbuffer, Handle hpattern, unsigned long timeoutsecs)
boolean fwsNetEventReadStreamBytes (unsigned long stream, Handle hbuffer, long ctbytes, unsigned long timeoutsecs)
boolean fwsNetEventReadStreamUntilClosed (unsigned long stream, Handle hbuffer, unsigned long timeoutsecs)
boolean fwsNetEventWriteHandleToStream (unsigned long stream, Handle hbuffer, unsigned long chunksize, unsigned long timeoutsecs)
boolean fwsNetEventWriteFileToStream (unsigned long stream, Handle hprefix, Handle hsuffix, ptrfilespec fs)
boolean fwsNetEventInetdRead (unsigned long stream, Handle hbuffer, unsigned long timeoutsecs)
boolean fwsNetEventGetStats (unsigned long stream, bigstring bs)
long fwsNetEventGetConnectionCount (void)

Variables

long maxconnections


Define Documentation

#define WINSOCK_VERSION_MAJOR   1
 

Definition at line 47 of file WinSockNetEvents.h.

Referenced by fwsNetEventLaunch().

#define WINSOCK_VERSION_MINOR   1
 

Definition at line 48 of file WinSockNetEvents.h.

Referenced by fwsNetEventLaunch().


Function Documentation

boolean fwsNetEventAbortStream unsigned long  stream  ) 
 

Definition at line 3801 of file OpenTransportNetEvents.c.

References checkAccepter(), decrementconnectioncounter(), fwsNetEventLaunch(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), NO_HOST_SERVICES, releasethreadglobalsnopriority(), tysockRecord::sockID, sockstack, SOCKTYPE_CLOSED, TCPTRACKERIN(), TCPTRACKEROUT(), and tysockRecord::typeID.

Referenced by inetdsupervisor(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventAddressDecode unsigned long  addr,
bigstring  IPaddr
 

Definition at line 2600 of file OpenTransportNetEvents.c.

References cantdecodeaddress, copyctopstring(), fwsNetEventLaunch(), langlongparamerror(), NULL, and setstringlength.

Referenced by inetdsupervisor(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventAddressEncode bigstring  IPaddr,
unsigned long addr
 

Definition at line 2617 of file OpenTransportNetEvents.c.

References cantencodeaddress, copyptocstring(), fwsNetEventLaunch(), and langparamerror().

Referenced by fwsNetEventOpenNameStream(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventAddressToName unsigned long  addr,
bigstring  domainName
 

Definition at line 2644 of file OpenTransportNetEvents.c.

References copyctopstring(), fwsNetEventLaunch(), grabthreadglobalsnopriority(), h, neterror(), NULL, releasethreadglobalsnopriority(), TCPprintf, TCPWRITEMSG(), and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventCloseListen unsigned long  stream  ) 
 

Definition at line 3449 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), i, intneterror(), INTNETERROR_INVALIDSTREAM, tysockRecord::maxdepth, NO_HOST_SERVICES, releasethreadglobalsnopriority(), shellframewindow, tysockRecord::sockID, sockstack, and TCPTRACKERIN().

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventCloseStream unsigned long  stream  ) 
 

Definition at line 3846 of file OpenTransportNetEvents.c.

References checkAccepter(), decrementconnectioncounter(), error, fwsNetEventLaunch(), getcurrentthreadglobals(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), NO_HOST_SERVICES, releasethreadglobalsnopriority(), tysockRecord::sockID, sockstack, SOCKTYPE_CLOSED, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, and wsprintf.

Referenced by inetdsupervisor(), and langfunctionvalue().

Here is the call graph for this function:

long fwsNetEventGetConnectionCount void   ) 
 

Definition at line 795 of file OpenTransportNetEvents.c.

Referenced by langfunctionvalue().

boolean fwsNetEventGetPeerAddress unsigned long  stream,
unsigned long peeraddress,
unsigned long peerport
 

Definition at line 4276 of file OpenTransportNetEvents.c.

References intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), tysockRecord::sockID, sockstack, TCPTRACKERIN(), and TCPTRACKEROUT().

Referenced by inetdsupervisor(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventGetStats unsigned long  stream,
bigstring  bs
 

Definition at line 5095 of file OpenTransportNetEvents.c.

References setemptystring, sockstack, SOCKTYPE_CLOSED, SOCKTYPE_DATA, SOCKTYPE_INACTIVE, and SOCKTYPE_OPEN.

Referenced by langfunctionvalue().

boolean fwsNetEventInetdRead unsigned long  stream,
Handle  hbuffer,
unsigned long  timeoutsecs
 

Definition at line 4980 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), NO_HOST_SERVICES, NULL, releasethreadglobalsnopriority(), select, sethandlesize(), tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, unlockhandle(), and wsprintf.

Referenced by inetdsupervisor().

Here is the call graph for this function:

boolean fwsNetEventListenStream unsigned  long,
long  ,
bigstring  ,
unsigned  long,
unsigned long ,
unsigned  long,
long 
 

Definition at line 3237 of file OpenTransportNetEvents.c.

References addsockrecord(), copystring(), tysockRecord::currentListenDepth, disposehandle(), tysockRecord::flNotification, fwsgetcallbackcodetree(), fwslaunchacceptingthread(), fwsNetEventLaunch(), grabthreadglobalsnopriority(), tysockRecord::hcallbacktree, tysockRecord::listenReference, tysockRecord::maxdepth, neterror(), nil, NO_HOST_SERVICES, nullterminate, tysockRecord::refcon, releasethreadglobalsnopriority(), shellframewindow, tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, SOCKTYPE_LISTENING, TCPprintf, TCPTRACKEROUT(), TCPWRITEMSG(), tysockRecord::typeID, wm_processAccept, and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventMyAddress unsigned long addr  ) 
 

Definition at line 2850 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), grabthreadglobalsnopriority(), h, neterror(), NULL, and releasethreadglobalsnopriority().

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventNameToAddress bigstring  domainName,
unsigned long addr
 

Definition at line 2747 of file OpenTransportNetEvents.c.

References copyptocstring(), fwsNetEventLaunch(), grabthreadglobalsnopriority(), h, neterror(), NULL, releasethreadglobalsnopriority(), TCPprintf, TCPWRITEMSG(), and wsprintf.

Referenced by fwsNetEventOpenNameStream(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventOpenAddrStream unsigned long  addr,
unsigned long  port,
unsigned long stream
 

Definition at line 3716 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), fwsOpenStream(), sizeof(), TCPprintf, TCPWRITEMSG(), and wsprintf.

Referenced by fwsNetEventOpenNameStream(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventOpenNameStream bigstring  name,
unsigned long  port,
unsigned long stream
 

Definition at line 3745 of file OpenTransportNetEvents.c.

References copyptocstring(), fwsNetEventAddressEncode(), fwsNetEventLaunch(), fwsNetEventOpenAddrStream(), fwsOpenStream(), grabthreadglobalsnopriority(), is_ipaddress(), neterror(), NULL, releasethreadglobalsnopriority(), TCPprintf, TCPWRITEMSG(), and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventQuit void   ) 
 

Definition at line 2561 of file OpenTransportNetEvents.c.

References frontierWinSockCount, frontierWinSockLoaded, nil, and TCPTRACKERCLOSE.

Referenced by shellshutdown().

boolean fwsNetEventReadStream unsigned long  stream,
unsigned long bytesToRead,
char *  buffer
 

Definition at line 3923 of file OpenTransportNetEvents.c.

References bigstring, convertpstring(), firstword(), fwsNetEventLaunch(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), NO_HOST_SERVICES, releasethreadglobalsnopriority(), tysockRecord::sockID, sockstack, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), texttostring(), and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventReadStreamBytes unsigned long  stream,
Handle  hbuffer,
long  ctbytes,
unsigned long  timeoutsecs
 

Definition at line 4610 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), NO_HOST_SERVICES, NULL, plainneterror(), releasethreadglobalsnopriority(), select, sethandlesize(), tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, STR_P_ERROR_CLOSED_PREMATURELY, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, unlockhandle(), and wsprintf.

Referenced by langfunctionvalue(), and webserverreadrequest().

Here is the call graph for this function:

boolean fwsNetEventReadStreamUntil unsigned long  stream,
Handle  hbuffer,
Handle  hpattern,
unsigned long  timeoutsecs
 

Definition at line 4333 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), NO_HOST_SERVICES, NULL, plainneterror(), releasethreadglobalsnopriority(), searchhandle(), select, sethandlesize(), tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, STR_P_ERROR_CLOSED_PREMATURELY, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, unlockhandle(), and wsprintf.

Referenced by langfunctionvalue(), and webserverreadrequest().

Here is the call graph for this function:

boolean fwsNetEventReadStreamUntilClosed unsigned long  stream,
Handle  hbuffer,
unsigned long  timeoutsecs
 

Definition at line 4482 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), NO_HOST_SERVICES, NULL, releasethreadglobalsnopriority(), select, sethandlesize(), tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, unlockhandle(), and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventShutDown void   ) 
 

Definition at line 1473 of file WinSockNetEvents.c.

References frontierWinSockCount, frontierWinSockLoaded, and TCPTRACKERCLOSE.

Referenced by WinMain().

void fwsNetEventShutdownDependentListeners long  hdatabase  ) 
 

Definition at line 3511 of file OpenTransportNetEvents.c.

References i, sockstack, SOCKTYPE_LISTENING, and SOCKTYPE_LISTENSTOPPED.

Referenced by ccdisposerecord().

boolean fwsNetEventStatusStream unsigned long  stream,
bigstring  status,
unsigned long bytesPending
 

Definition at line 4135 of file OpenTransportNetEvents.c.

References copyctopstring(), fwsNetEventLaunch(), inmainthread(), intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), NO_HOST_SERVICES, NULL, nullterminate, select, tysockRecord::sockID, sockstack, SOCKTYPE_CLOSED, SOCKTYPE_INACTIVE, SOCKTYPE_INVALID, SOCKTYPE_LISTENING, SOCKTYPE_LISTENSTOPPED, SOCKTYPE_OPEN, SOCKTYPE_UNKNOWN, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, and wsprintf.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventWriteFileToStream unsigned long  stream,
Handle  hprefix,
Handle  hsuffix,
ptrfilespec  fs
 

Definition at line 4935 of file OpenTransportNetEvents.c.

References copyptocstring(), fsname, fwsNetEventLaunch(), fwsNetEventWriteStream(), fwstransmitfile(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), nil, NO_HOST_SERVICES, NULL, oserror(), releasethreadglobalsnopriority(), tysockRecord::sockID, sockstack, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), unlockhandle(), and wsprintf.

Referenced by langfunctionvalue(), and webservercallresponder().

Here is the call graph for this function:

boolean fwsNetEventWriteHandleToStream unsigned long  stream,
Handle  hbuffer,
unsigned long  chunksize,
unsigned long  timeoutsecs
 

Definition at line 4748 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), gethandlesize(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, lockhandle(), neterror(), NO_HOST_SERVICES, NULL, releasethreadglobalsnopriority(), select, tysockRecord::sockID, sockstack, SOCKTYPE_INACTIVE, TCPERRORprintf, TCPERRORWRITEMSG, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), tysockRecord::typeID, unlockhandle(), and wsprintf.

Referenced by inetdsupervisor(), and langfunctionvalue().

Here is the call graph for this function:

boolean fwsNetEventWriteStream unsigned long  stream,
unsigned long  bytesToWrite,
char *  buffer
 

Definition at line 4027 of file OpenTransportNetEvents.c.

References fwsNetEventLaunch(), grabthreadglobalsnopriority(), intneterror(), INTNETERROR_INVALIDSTREAM, neterror(), NO_HOST_SERVICES, releasethreadglobalsnopriority(), tysockRecord::sockID, sockstack, TCPprintf, TCPTRACKERIN(), TCPWRITEMSG(), and wsprintf.

Referenced by fwsNetEventWriteFileToStream(), fwstransmitfile(), and langfunctionvalue().

Here is the call graph for this function:


Variable Documentation

long maxconnections
 

Definition at line 788 of file OpenTransportNetEvents.c.

Referenced by initenvironment().


Generated on Thu Jun 15 01:31:08 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6