Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8397935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:54:21+00:00 2026-06-09T20:54:21+00:00

Run c++ on Ubuntu. I open socket in this way: socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW)) What

  • 0

Run c++ on Ubuntu.
I open socket in this way:

socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW))

What do i need to do in the end of the use?
Some socket will be used as long as the program run , do i need to check them from a while? to see if socket still exist?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:54:22+00:00Added an answer on June 9, 2026 at 8:54 pm

    The socket exists until you call close on its file descriptor. Since you have a raw IP socket, there’s no notion of “being alive”. Just close it when you’re done using it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use this Ubuntu Upstart script to set up Play to run
I'm trying to run my php App from Ubuntu Server 11.10. This App works
To start Diaspora sever need to run these command: cd /home/diaspora ./script/sever My server(Ubuntu
I installed open cv in my ubuntu 11.04. But whenever I try to run
I'm trying to run some precompiled code (source code is not available) on Ubuntu,
I get this error when I try to run mongo, in ubuntu. mongo: error
I have a custom server in C# being run on Ubuntu 11.10 under mono.
I run an installation of Ubuntu as a server. I have noticed that it
Using Ubuntu, when I run bundle install to set up my Rails environment, it
I run PHP 5.2 on Ubuntu with Apache 2. When I want to serve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.