Sponsored Content
Full Discussion: porting
Top Forums UNIX for Advanced & Expert Users porting Post 302082033 by areef4u on Sunday 30th of July 2006 12:28:27 PM
Old 07-30-2006
porting

I want to know what are the design considerations to be taken into account. when porting a socket project from Unix platform to another ......
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Porting Scripts.

Hi all, Figured this would be a good a place (well more apropriate) to ask this ... What considerations are necesary to port a script from one system to another? The below link is a script that I'm currently working on at work. The work system is a SCO box and I'm slowly becoming familar... (1 Reply)
Discussion started by: Cameron
1 Replies

2. Programming

Porting to solaris

I have ported a c program to solaris. When I run , it gives me segmentation fault error at line :- memcpy ((char *)a_string ,(char *)0, MAX_READ ) ; originally this was in reliant unix as :- memcpy ( a_string , 0 , MAX_READ ) ; Can somebody help me about this ? (1 Reply)
Discussion started by: suds19
1 Replies

3. UNIX for Dummies Questions & Answers

HP-UX to linux porting

Hi all, i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting.. thanks in advance Arun Prakash (0 Replies)
Discussion started by: arunprakash
0 Replies

4. Programming

Porting tools

I m sorry if this is the wrong place to post this. I m going to do a project on porting tools in unix platform. Can any one give me further suggestions and resources for this topic "Porting tools". Thanks in advance (5 Replies)
Discussion started by: veeru554
5 Replies

5. Programming

Porting From Linux To Hpux

Gents, i'm a senior applications developer and need to port a Linux server application ( no additional / special libraries or unique header files ) to a HPUX enviroment. Any chance to compile it on the Linux using flags to create an HPUX binary with gcc? (8 Replies)
Discussion started by: anak0nda
8 Replies

6. Linux

when porting from HP-UX to Linux

helo, i m porting HP-UX socket application to Linux SSL-socket application. I have use htonl() in HP-UX. so when i use it in Linux, data transf is not done and application become soem time crashed. now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Discussion started by: amitpansuria
1 Replies

7. HP-UX

Makfile porting

I am trying to port to HP-UX 11i v3 system an application in C++ language written for a Tru64 Unix V5. I am trying to execute on HP-UX 11i v3 a Makefile written for Tru64 Unix V5 with this code: $(TARGET_MORE): $(DEPEND_FILE) $(SOURCE_MORE.cc) $(LIBS) @for i in $(TARGET_MORE); do \ ... (1 Reply)
Discussion started by: angeloberardi
1 Replies

8. AIX

Porting from HP-UX to AIX

I am orignally a VC++ programmer, this is the my post in UNIX form. I have an existing source code, that was developed in old HP-UX system, the objective is to make it work on new AIX system. It does'nt appear that AIX has the necessary libraries or even run the application if its... (0 Replies)
Discussion started by: maverick786us
0 Replies

9. Solaris

Porting to new hardware - best way?

Same version of Solaris etc. Moving to new hardware. The application that runs on this server is easy enough to re-install but Im concerned about things like:- 1. Users/passwords/home directories 2. Cron jobs 3. Static routes Is there ANY way to either export this sort of thing so that I... (6 Replies)
Discussion started by: psychocandy
6 Replies
BIO_s_socket(3SSL)						      OpenSSL							BIO_s_socket(3SSL)

NAME
BIO_s_socket, BIO_new_socket - socket BIO SYNOPSIS
#include <openssl/bio.h> BIO_METHOD *BIO_s_socket(void); long BIO_set_fd(BIO *b, int fd, long close_flag); long BIO_get_fd(BIO *b, int *c); BIO *BIO_new_socket(int sock, int close_flag); DESCRIPTION
BIO_s_socket() returns the socket BIO method. This is a wrapper round the platform's socket routines. BIO_read() and BIO_write() read or write the underlying socket. BIO_puts() is supported but BIO_gets() is not. If the close flag is set then the socket is shut down and closed when the BIO is freed. BIO_set_fd() sets the socket of BIO b to fd and the close flag to close_flag. BIO_get_fd() places the socket in c if it is not NULL, it also returns the socket. If c is not NULL it should be of type (int *). BIO_new_socket() returns a socket BIO using sock and close_flag. NOTES
Socket BIOs also support any relevant functionality of file descriptor BIOs. The reason for having separate file descriptor and socket BIOs is that on some platforms sockets are not file descriptors and use distinct I/O routines, Windows is one such platform. Any code mixing the two will not work on all platforms. BIO_set_fd() and BIO_get_fd() are macros. RETURN VALUES
BIO_s_socket() returns the socket BIO method. BIO_set_fd() always returns 1. BIO_get_fd() returns the socket or -1 if the BIO has not been initialized. BIO_new_socket() returns the newly allocated BIO or NULL is an error occurred. SEE ALSO
TBA 1.0.1e 2013-02-11 BIO_s_socket(3SSL)
All times are GMT -4. The time now is 12:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy