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

  • SEARCH
  • Home
  • 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 3229496
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:49:02+00:00 2026-05-17T16:49:02+00:00

Is it possible to read a Network Adapter similar to a Serial Port? I

  • 0

Is it possible to read a Network Adapter similar to a Serial Port? I know that Serial Ports can be read with CreateFile WINAPI Function. Is there a similar way to read raw bytes from a Network Adapter?

I am aware of the WiFi/Network Functions but the WiFi Examples are fairly sparse.

  • 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-05-17T16:49:03+00:00Added an answer on May 17, 2026 at 4:49 pm

    You can pass the SOCK_RAW flag when you create the socket using WSASocket() (or socket(), as your tastes run). This is described in further detail under TCP/IP Raw Sockets on MSDN.

    From that page —

    Once an application creates a socket
    of type SOCK_RAW, this socket may be
    used to send and receive data. All
    packets sent or received on a socket
    of type SOCK_RAW are treated as
    datagrams on an unconnected socket.

    Of note, Microsoft crippled their raw sockets implementation after Windows XP SP2; the details are described on the MSDN page in the section Limitations on Raw Sockets:

    • TCP data cannot be sent over raw sockets.
    • UDP datagrams with an invalid source address cannot be sent over raw
      sockets.
    • A call to the bind function with a raw socket is not allowed.

    If these limitations are too restrictive, you can fall back to the previously recommended winpcap library.

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

Sidebar

Related Questions

I know that it is possible read and write data from mongodb via hadoop.
Is it possible to read the content of a file that has been selected
I have a long-running application that basically: read packets off network save it somewhere
I know that my network printer (big Konica Minolta) have own memory and storage
So I read here that it's not possible to capture preview frames without a
Is that possible? I'm writing a web-admin interface for a network-system. I need to
Possible Duplicate: Read Post Data submitted to ASP.Net Form I have a google checkout
Is possible to read from a txt file in loop like this? files names:
Is it possible to read alphanumeric characters only from the given input line ignoring
Is it possible to read intermittently-sent data through a named pipe using redirection to

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.