Back to index

lightning-sunbird  0.9+nobinonly
Classes | Typedefs | Functions
nsServerSocket.cpp File Reference
#include "nsIProxyObjectManager.h"
#include "nsIServiceManager.h"
#include "nsSocketTransport2.h"
#include "nsServerSocket.h"
#include "nsAutoLock.h"
#include "nsAutoPtr.h"
#include "nsNetError.h"
#include "nsNetCID.h"
#include "prnetdb.h"
#include "prio.h"

Go to the source code of this file.

Classes

struct  nsServerSocketEvent

Typedefs

typedef void(nsServerSocket::* nsServerSocketFunc )(void)

Functions

static NS_DEFINE_CID (kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID)
static nsresult PostEvent (nsServerSocket *s, nsServerSocketFunc func)

Typedef Documentation

typedef void(nsServerSocket:: * nsServerSocketFunc)(void)

Definition at line 53 of file nsServerSocket.cpp.


Function Documentation

static NS_DEFINE_CID ( kSocketTransportServiceCID  ,
NS_SOCKETTRANSPORTSERVICE_CID   
) [static]
static nsresult PostEvent ( nsServerSocket s,
nsServerSocketFunc  func 
) [static]

Definition at line 86 of file nsServerSocket.cpp.

{
  nsServerSocketEvent *ev = new nsServerSocketEvent(s, func);
  if (!ev)
    return NS_ERROR_OUT_OF_MEMORY;

  nsresult rv = gSocketTransportService->PostEvent(ev);
  if (NS_FAILED(rv))
    PL_DestroyEvent(ev);
  return rv;
}

Here is the call graph for this function: