version 1.2, 2001/12/13 14:54:02
|
version 1.21, 2006/10/04 11:20:36
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: David Dillard, Symantec Corp. (david_dillard@symantec.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_Socket_h | #ifndef Pegasus_Socket_h |
#define Pegasus_Socket_h | #define Pegasus_Socket_h |
| |
|
#include <cctype> |
|
#include <Pegasus/Common/Network.h> |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/Linkage.h> |
|
|
|
#ifdef PEGASUS_OS_OS400 |
|
# include <Pegasus/Common/EBCDIC_OS400.h> |
|
#endif |
|
|
|
#ifdef PEGASUS_OS_ZOS |
|
# include <string.h> // added by rk for memcpy |
|
#endif |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
{ | { |
public: | public: |
| |
|
static Sint32 read(SocketHandle socket, void* ptr, Uint32 size); |
| |
static Sint32 read(Sint32 socket, void* ptr, Uint32 size); |
static Sint32 write(SocketHandle socket, const void* ptr, Uint32 size); |
| |
static Sint32 write(Sint32 socket, const void* ptr, Uint32 size); |
static Sint32 timedWrite(SocketHandle socket, |
|
const void* ptr, |
|
Uint32 size, |
|
Uint32 socketWriteTimeout); |
| |
static void close(Sint32 socket); |
static void close(SocketHandle socket); |
| |
static void enableBlocking(Sint32 socket); |
static void enableBlocking(SocketHandle socket); |
| |
static void disableBlocking(Sint32 socket); |
static void disableBlocking(SocketHandle socket); |
| |
static void initializeInterface(); | static void initializeInterface(); |
| |
static void uninitializeInterface(); | static void uninitializeInterface(); |
| |
private: |
static SocketHandle createSocket(int domain, int type, int protocol); |
| |
Socket() { } |
private: |
|
Socket(); |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |