LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-24-2012, 04:41 AM   #1
chercheur
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
Restore Socket after checkpoint


Hello,

i have done the checkpoint of an application client server in C with BLCR (Berkeley Lab checkpoint restart), after a failure, i'd like to restart server (server.blcr) and client (client.blcr) but i should recreate sockets betwen new client and new server, have you an idea please ?

Thank you so much.
 
Old 09-24-2012, 10:27 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Don't do any special; use socket(2), bind(2), connect(2), listen(2), etc. the usual way.
 
Old 09-24-2012, 11:16 AM   #3
chercheur
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
How can i do that please ? because the server.blcr will restart on a new machine so haw the client.blcr will detect the new ip adress of the server
 
Old 09-24-2012, 11:48 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
I repeat: use the well-known socket functions to create a new TCP-connection. Of course it will not be the 'resurrection' of the old connection.
 
Old 09-24-2012, 11:51 AM   #5
chercheur
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
yes i know haw to create socket , but the question haw can tell client.blcr about the new adress ip of the server? i think at first to developp a shared library .. what's your opinion ?
 
Old 09-24-2012, 12:07 PM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
I think restarting as such don't work together with network connection (nor shared files, databases etc) -- it is for long batch processes, to make them interruptible.
 
Old 09-24-2012, 12:17 PM   #7
chercheur
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
the problème how the client.blcr will detect the new ip adress of the server? have you another idea please ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkpoint Firewall Paris Heng Linux - Security 1 02-07-2009 10:45 AM
Checkpoint VPN Client mikedeatworld Linux - Software 2 06-24-2007 06:08 PM
Checkpoint SecuRemote dexim Linux - Security 2 01-06-2007 09:47 PM
Checkpoint for Linux mikedeatworld Linux - Networking 1 07-02-2004 07:07 PM
CheckPoint NG with AI upgrade itsjustme Linux - Security 1 11-23-2003 03:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration