Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OS_TLI.inl

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: OS_TLI.inl,v 1.1.1.2 2001/12/04 14:33:06 chad Exp $
00003 
00004 ACE_INLINE int
00005 ACE_OS_TLI::t_accept (ACE_HANDLE handle, 
00006                       ACE_HANDLE reshandle,
00007                       struct t_call *call)
00008 {
00009 #if defined (ACE_HAS_TLI)
00010   ACE_OSCALL_RETURN (::t_accept (handle, reshandle, call), int, -1);
00011 #else
00012   ACE_UNUSED_ARG (call);
00013   ACE_UNUSED_ARG (reshandle);
00014   ACE_UNUSED_ARG (handle);
00015 
00016   ACE_NOTSUP_RETURN (-1);
00017 #endif /* ACE_HAS_TLI */
00018 }
00019 
00020 ACE_INLINE char *
00021 ACE_OS_TLI::t_alloc (ACE_HANDLE handle, int struct_type,
00022                      int fields)
00023 {
00024 #if defined (ACE_HAS_TLI)
00025   ACE_OSCALL_RETURN (::t_alloc (handle, struct_type, fields),
00026                      char *, 0);
00027 #else
00028   ACE_UNUSED_ARG (fields);
00029   ACE_UNUSED_ARG (struct_type);
00030   ACE_UNUSED_ARG (handle);
00031 
00032   ACE_NOTSUP_RETURN (0);
00033 #endif /* ACE_HAS_TLI */
00034 }
00035 
00036 ACE_INLINE int
00037 ACE_OS_TLI::t_bind (ACE_HANDLE handle, struct t_bind *req,
00038                     struct t_bind *ret)
00039 {
00040 #if defined (ACE_HAS_TLI)
00041   ACE_OSCALL_RETURN (::t_bind (handle, req, ret), int, -1);
00042 #else
00043   ACE_UNUSED_ARG (ret);
00044   ACE_UNUSED_ARG (req);
00045   ACE_UNUSED_ARG (handle);
00046 
00047   ACE_NOTSUP_RETURN (-1);
00048 #endif /* ACE_HAS_TLI */
00049 }
00050 
00051 ACE_INLINE int
00052 ACE_OS_TLI::t_close (ACE_HANDLE handle)
00053 {
00054 #if defined (ACE_HAS_TLI)
00055   ACE_OSCALL_RETURN (::t_close (handle), int, -1);
00056 #else
00057   ACE_UNUSED_ARG (handle);
00058 
00059   ACE_NOTSUP_RETURN (-1);
00060 #endif /* ACE_HAS_TLI */
00061 }
00062 
00063 ACE_INLINE int
00064 ACE_OS_TLI::t_connect(ACE_HANDLE fildes,
00065                       struct t_call *sndcall,
00066                       struct t_call *rcvcall)
00067 {
00068 #if defined (ACE_HAS_TLI)
00069   ACE_OSCALL_RETURN (::t_connect (fildes, sndcall, rcvcall), int, -1);
00070 #else
00071   ACE_UNUSED_ARG (fildes);
00072   ACE_UNUSED_ARG (sndcall);
00073   ACE_UNUSED_ARG (rcvcall);
00074 
00075   ACE_NOTSUP_RETURN (-1);
00076 #endif /* ACE_HAS_TLI */
00077 }
00078 
00079 ACE_INLINE void
00080 ACE_OS_TLI::t_error (const char *errmsg)
00081 {
00082 #if defined (ACE_HAS_TLI)
00083 #if defined (ACE_HAS_BROKEN_T_ERROR)
00084   ::t_error (ACE_const_cast (char *, errmsg));
00085 #else
00086   ::t_error (errmsg);
00087 #endif /* ACE_HAS_BROKEN_T_ERROR */
00088 #else
00089   ACE_UNUSED_ARG (errmsg);
00090 #endif /* ACE_HAS_TLI */
00091 }
00092 
00093 ACE_INLINE int
00094 ACE_OS_TLI::t_free (char *ptr, int struct_type)
00095 {
00096 #if defined (ACE_HAS_TLI)
00097   if (ptr == 0)
00098     return 0;
00099   ACE_OSCALL_RETURN (::t_free (ptr, struct_type), int, -1);
00100 #else
00101   ACE_UNUSED_ARG (struct_type);
00102   ACE_UNUSED_ARG (ptr);
00103 
00104   ACE_NOTSUP_RETURN (-1);
00105 #endif /* ACE_HAS_TLI */
00106 }
00107 
00108 ACE_INLINE int
00109 ACE_OS_TLI::t_getinfo (ACE_HANDLE handle, struct t_info *info)
00110 {
00111 #if defined (ACE_HAS_TLI)
00112   ACE_OSCALL_RETURN (::t_getinfo (handle, info), int, -1);
00113 #else
00114   ACE_UNUSED_ARG (info);
00115   ACE_UNUSED_ARG (handle);
00116 
00117   ACE_NOTSUP_RETURN (-1);
00118 #endif /* ACE_HAS_TLI */
00119 }
00120 
00121 ACE_INLINE int
00122 ACE_OS_TLI::t_getname (ACE_HANDLE handle,
00123                        struct netbuf *namep,
00124                        int type)
00125 {
00126 #if defined (ACE_HAS_SVR4_TLI)
00127   ACE_OSCALL_RETURN (::t_getname (handle, namep, type), int, -1);
00128 #else
00129   ACE_UNUSED_ARG (handle);
00130   ACE_UNUSED_ARG (namep);
00131   ACE_UNUSED_ARG (type);
00132 
00133   ACE_NOTSUP_RETURN (-1);
00134 #endif /* ACE_HAS_SVR4_TLI */
00135 }
00136 
00137 ACE_INLINE int
00138 ACE_OS_TLI::t_getstate (ACE_HANDLE handle)
00139 {
00140 #if defined (ACE_HAS_TLI)
00141   ACE_OSCALL_RETURN (::t_getstate (handle), int, -1);
00142 #else
00143   ACE_UNUSED_ARG (handle);
00144 
00145   ACE_NOTSUP_RETURN (-1);
00146 #endif /* ACE_HAS_TLI */
00147 }
00148 
00149 ACE_INLINE int
00150 ACE_OS_TLI::t_listen (ACE_HANDLE handle, struct t_call *call)
00151 {
00152 #if defined (ACE_HAS_TLI)
00153   ACE_OSCALL_RETURN (::t_listen (handle, call), int, -1);
00154 #else
00155   ACE_UNUSED_ARG (handle);
00156   ACE_UNUSED_ARG (call);
00157 
00158   ACE_NOTSUP_RETURN (-1);
00159 #endif /* ACE_HAS_TLI */
00160 }
00161 
00162 ACE_INLINE int
00163 ACE_OS_TLI::t_look (ACE_HANDLE handle)
00164 {
00165 #if defined (ACE_HAS_TLI)
00166   ACE_OSCALL_RETURN (::t_look (handle), int, -1);
00167 #else
00168   ACE_UNUSED_ARG (handle);
00169 
00170   ACE_NOTSUP_RETURN (-1);
00171 #endif /* ACE_HAS_TLI */
00172 }
00173 
00174 ACE_INLINE ACE_HANDLE
00175 ACE_OS_TLI::t_open (char *path, int oflag, struct t_info *info)
00176 {
00177 #if defined (ACE_HAS_TLI)
00178   ACE_OSCALL_RETURN (::t_open (path, oflag, info), ACE_HANDLE, ACE_INVALID_HANDLE);
00179 #else
00180   ACE_UNUSED_ARG (path);
00181   ACE_UNUSED_ARG (oflag);
00182   ACE_UNUSED_ARG (info);
00183 
00184   ACE_NOTSUP_RETURN (ACE_INVALID_HANDLE);
00185 #endif /* ACE_HAS_TLI */
00186 }
00187 
00188 ACE_INLINE int
00189 ACE_OS_TLI::t_optmgmt (ACE_HANDLE handle,
00190                        struct t_optmgmt *req,
00191                        struct t_optmgmt *ret)
00192 {
00193 #if defined (ACE_HAS_TLI)
00194   ACE_OSCALL_RETURN (::t_optmgmt (handle, req, ret), int, -1);
00195 #else
00196   ACE_UNUSED_ARG (handle);
00197   ACE_UNUSED_ARG (req);
00198   ACE_UNUSED_ARG (ret);
00199 
00200   ACE_NOTSUP_RETURN (-1);
00201 #endif /* ACE_HAS_TLI */
00202 }
00203 
00204 ACE_INLINE int
00205 ACE_OS_TLI::t_rcv (ACE_HANDLE handle,
00206                    char *buf,
00207                    unsigned int nbytes,
00208                    int *flags)
00209 {
00210 #if defined (ACE_HAS_TLI)
00211   ACE_OSCALL_RETURN (::t_rcv (handle, buf, nbytes, flags),
00212                      int, -1);
00213 #else
00214   ACE_UNUSED_ARG (handle);
00215   ACE_UNUSED_ARG (buf);
00216   ACE_UNUSED_ARG (nbytes);
00217   ACE_UNUSED_ARG (flags);
00218 
00219   ACE_NOTSUP_RETURN (-1);
00220 #endif /* ACE_HAS_TLI */
00221 }
00222 
00223 ACE_INLINE int
00224 ACE_OS_TLI::t_rcvdis (ACE_HANDLE handle, struct t_discon *discon)
00225 {
00226 #if defined (ACE_HAS_TLI)
00227   ACE_OSCALL_RETURN (::t_rcvdis (handle, discon), int, -1);
00228 #else
00229   ACE_UNUSED_ARG (handle);
00230   ACE_UNUSED_ARG (discon);
00231 
00232   ACE_NOTSUP_RETURN (-1);
00233 #endif /* ACE_HAS_TLI */
00234 }
00235 
00236 ACE_INLINE int
00237 ACE_OS_TLI::t_rcvrel (ACE_HANDLE handle)
00238 {
00239 #if defined (ACE_HAS_TLI)
00240   ACE_OSCALL_RETURN (::t_rcvrel (handle), int, -1);
00241 #else
00242   ACE_UNUSED_ARG (handle);
00243 
00244   ACE_NOTSUP_RETURN (-1);
00245 #endif /* ACE_HAS_TLI */
00246 }
00247 
00248 ACE_INLINE int
00249 ACE_OS_TLI::t_rcvudata (ACE_HANDLE handle,
00250                         struct t_unitdata *unitdata,
00251                         int *flags)
00252 {
00253 #if defined (ACE_HAS_TLI)
00254   ACE_OSCALL_RETURN (::t_rcvudata (handle, unitdata, flags),
00255                      int, -1);
00256 #else
00257   ACE_UNUSED_ARG (handle);
00258   ACE_UNUSED_ARG (unitdata);
00259   ACE_UNUSED_ARG (flags);
00260 
00261   ACE_NOTSUP_RETURN (-1);
00262 #endif /* ACE_HAS_TLI */
00263 }
00264 
00265 ACE_INLINE int
00266 ACE_OS_TLI::t_rcvuderr (ACE_HANDLE handle, struct t_uderr *uderr)
00267 {
00268 #if defined (ACE_HAS_TLI)
00269   ACE_OSCALL_RETURN (::t_rcvuderr (handle, uderr), int, -1);
00270 #else
00271   ACE_UNUSED_ARG (handle);
00272   ACE_UNUSED_ARG (uderr);
00273 
00274   ACE_NOTSUP_RETURN (-1);
00275 #endif /* ACE_HAS_TLI */
00276 }
00277 
00278 ACE_INLINE int
00279 ACE_OS_TLI::t_snd (ACE_HANDLE handle,
00280                    const char *buf,
00281                    unsigned int nbytes,
00282                    int flags)
00283 {
00284 #if defined (ACE_HAS_TLI)
00285   ACE_OSCALL_RETURN (::t_snd (handle, (char *) buf, nbytes, flags), int, -1);
00286 #else
00287   ACE_UNUSED_ARG (handle);
00288   ACE_UNUSED_ARG (buf);
00289   ACE_UNUSED_ARG (nbytes);
00290   ACE_UNUSED_ARG (flags);
00291 
00292   ACE_NOTSUP_RETURN (-1);
00293 #endif /* ACE_HAS_TLI */
00294 }
00295 
00296 ACE_INLINE int
00297 ACE_OS_TLI::t_snddis (ACE_HANDLE handle, struct t_call *call)
00298 {
00299 #if defined (ACE_HAS_TLI)
00300   ACE_OSCALL_RETURN (::t_snddis (handle, call), int, -1);
00301 #else
00302   ACE_UNUSED_ARG (handle);
00303   ACE_UNUSED_ARG (call);
00304 
00305   ACE_NOTSUP_RETURN (-1);
00306 #endif /* ACE_HAS_TLI */
00307 }
00308 
00309 ACE_INLINE int
00310 ACE_OS_TLI::t_sndrel (ACE_HANDLE handle)
00311 {
00312 #if defined (ACE_HAS_TLI)
00313   ACE_OSCALL_RETURN (::t_sndrel (handle), int, -1);
00314 #else
00315   ACE_UNUSED_ARG (handle);
00316 
00317   ACE_NOTSUP_RETURN (-1);
00318 #endif /* ACE_HAS_TLI */
00319 }
00320 
00321 ACE_INLINE int
00322 ACE_OS_TLI::t_sync (ACE_HANDLE handle)
00323 {
00324 #if defined (ACE_HAS_TLI)
00325   ACE_OSCALL_RETURN (::t_sync (handle), int, -1);
00326 #else
00327   ACE_UNUSED_ARG (handle);
00328 
00329   ACE_NOTSUP_RETURN (-1);
00330 #endif /* ACE_HAS_TLI */
00331 }
00332 
00333 ACE_INLINE int
00334 ACE_OS_TLI::t_unbind (ACE_HANDLE handle)
00335 {
00336 #if defined (ACE_HAS_TLI)
00337   ACE_OSCALL_RETURN (::t_unbind (handle), int, -1);
00338 #else
00339   ACE_UNUSED_ARG (handle);
00340 
00341   ACE_NOTSUP_RETURN (-1);
00342 #endif /* ACE_HAS_TLI */
00343 }

Generated on Mon Jun 16 11:20:46 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002