473,657 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking NNTP classes.....

Jim
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked? If not,
inclusion of RFC documented protocols would certainly be a good idea for a
class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e even
improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP protocols
are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and the RFC for the
USENET mail standard is at http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!

Dec 13 '05 #1
11 2215
The way I see it, you have two choices and most likely a couple more.

1. Implement the RFCs using TcpClient. (two thumbs down from me)
2. Utilize other people work. Use the IndyProject http//www.indyproject .org

In the last couple of years I wanted to do the same thing but, never really
got going. I found a couple of .NET libraries but found that Indy was the
most complete.

Good luck and if you succeed, please post about it! :)

Chris
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked?
If not, inclusion of RFC documented protocols would certainly be a
good idea for a class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e
even improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP
protocols are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and
the RFC for the USENET mail standard is at
http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!

Dec 13 '05 #2
Jim
Link doesn't work to Indy.....http//www.indyproject .org simply redirects to
www.microsoft.com.
"chris martin" <chris_m|NOSPAM |@caliber|SPAM| web.com> wrote in message
news:44******** *************** ***@news.easyne ws.com...
The way I see it, you have two choices and most likely a couple more.

1. Implement the RFCs using TcpClient. (two thumbs down from me)
2. Utilize other people work. Use the IndyProject
http//www.indyproject .org

In the last couple of years I wanted to do the same thing but, never
really got going. I found a couple of .NET libraries but found that Indy
was the most complete.

Good luck and if you succeed, please post about it! :)

Chris
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked?
If not, inclusion of RFC documented protocols would certainly be a
good idea for a class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e
even improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP
protocols are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and
the RFC for the USENET mail standard is at
http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!


Dec 13 '05 #3
Jim
Googled and found it..... thanks!

"Jim" <re***@groups.p lease> wrote in message
news:If******** *********@bigne ws5.bellsouth.n et...
Link doesn't work to Indy.....http//www.indyproject .org simply redirects
to www.microsoft.com.
"chris martin" <chris_m|NOSPAM |@caliber|SPAM| web.com> wrote in message
news:44******** *************** ***@news.easyne ws.com...
The way I see it, you have two choices and most likely a couple more.

1. Implement the RFCs using TcpClient. (two thumbs down from me)
2. Utilize other people work. Use the IndyProject
http//www.indyproject .org

In the last couple of years I wanted to do the same thing but, never
really got going. I found a couple of .NET libraries but found that Indy
was the most complete.

Good luck and if you succeed, please post about it! :)

Chris
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked?
If not, inclusion of RFC documented protocols would certainly be a
good idea for a class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e
even improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP
protocols are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and
the RFC for the USENET mail standard is at
http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!



Dec 13 '05 #4
Jim
Doesn't play well with VS 2005....
"Jim" <re***@groups.p lease> wrote in message
news:5h******** *********@bigne ws5.bellsouth.n et...
Googled and found it..... thanks!

"Jim" <re***@groups.p lease> wrote in message
news:If******** *********@bigne ws5.bellsouth.n et...
Link doesn't work to Indy.....http//www.indyproject .org simply redirects
to www.microsoft.com.
"chris martin" <chris_m|NOSPAM |@caliber|SPAM| web.com> wrote in message
news:44******** *************** ***@news.easyne ws.com...
The way I see it, you have two choices and most likely a couple more.

1. Implement the RFCs using TcpClient. (two thumbs down from me)
2. Utilize other people work. Use the IndyProject
http//www.indyproject .org

In the last couple of years I wanted to do the same thing but, never
really got going. I found a couple of .NET libraries but found that Indy
was the most complete.

Good luck and if you succeed, please post about it! :)

Chris

Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked?
If not, inclusion of RFC documented protocols would certainly be a
good idea for a class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e
even improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP
protocols are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and
the RFC for the USENET mail standard is at
http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!



Dec 13 '05 #5
"Jim" <re***@groups.p lease> schrieb:
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?


Accessing newsgroups with NNTP
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=nntp&lang=e n>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 13 '05 #6
Hi,

Here is some vb.net code I wrote based on this c# code.

http://www.developerfusion.co.uk/show/4472/

NNTP class
Imports System.Net.Sock ets
Imports System.IO
Imports System.Runtime. Serialization
Imports System.Runtime. Serialization.F ormatters.Binar y

Public Class NNTP
Inherits System.Net.Sock ets.TcpClient

Public Event MessageHeaderRe cieved(ByVal sender As Object, ByVal e As
NNPTEventArgs)
Dim arNews As New NewsGroupMessag eTable
Dim mstrGroupName As String

#Region "Message custom Hashtable"
<Serializable() > _
Private Class NewsGroupMessag eTable
Inherits System.Collecti ons.DictionaryB ase
Default Public Property Item(ByVal key As [String]) As
NNTP.NewsGroupM essage
Get
Return CType(Dictionar y(key), NNTP.NewsGroupM essage)
End Get
Set(ByVal Value As NNTP.NewsGroupM essage)
Dictionary(key) = Value
End Set
End Property

Public ReadOnly Property Keys() As ICollection
Get
Return Dictionary.Keys
End Get
End Property

Public ReadOnly Property Values() As ICollection
Get
Return Dictionary.Valu es
End Get
End Property

Public Sub Add(ByVal key As [String], ByVal value As
NNTP.NewsGroupM essage)
Dictionary.Add( key, value)
End Sub 'Add

Public Function Contains(ByVal key As [String]) As Boolean
Return Dictionary.Cont ains(key)
End Function 'Contains

Public Sub Remove(ByVal key As [String])
Dictionary.Remo ve(key)
End Sub 'Remove

End Class
#End Region

#Region "News group message class"
<Serializable() > _
Public Class NewsGroupMessag e
Dim mstrSubject As String
Dim mstrTo As String
Dim mstrFrom As String
Dim mstrBody As String
Dim mdtMessage As Date
Dim intId As Long
Dim strRef As String = "None"

Public Property ID() As Long
Get
Return intId
End Get
Set(ByVal Value As Long)
intId = Value
End Set
End Property

Public Property MessageDate() As Date
Get
Return mdtMessage
End Get
Set(ByVal Value As Date)
mdtMessage = Value
End Set
End Property

Public Property Subject() As String
Get
Return mstrSubject
End Get
Set(ByVal Value As String)
mstrSubject = Value
End Set
End Property

Public Property From() As String
Get
Return mstrFrom
End Get
Set(ByVal Value As String)
mstrFrom = Value
End Set
End Property

Public Property Body() As String
Get
Return mstrBody
End Get
Set(ByVal Value As String)
mstrBody = Value
End Set
End Property

Public Property MessageReferenc e() As String
Get
Return strRef
End Get
Set(ByVal Value As String)
strRef = Value
End Set
End Property
Public Property MessageTo() As String
Get
Return mstrTo
End Get
Set(ByVal Value As String)
mstrTo = Value
End Set
End Property
End Class

#End Region

#Region "NNPT event args"
Public Class NNPTEventArgs
Inherits EventArgs
Private mintMax As Long
Private mintpos As Long
Private mMessage As NewsGroupMessag e

Public Sub New(ByVal max As Long, ByVal pos As Long, ByVal message
As NewsGroupMessag e)
mintMax = max
mintpos = pos
mMessage = message
End Sub

Public ReadOnly Property Max() As Long
Get
Return mintMax
End Get
End Property

Public ReadOnly Property Pos() As Long
Get
Return mintpos
End Get
End Property

Public ReadOnly Property Message() As NewsGroupMessag e
Get
Return mMessage
End Get
End Property
End Class
#End Region

Public Overloads Sub Connect(ByVal server As String)
Dim strResponse As String

Connect(server, 119)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "200" Then
Throw New NntpException(R esponse)
End If

End Sub 'Connect

Public Sub Disconnect()
Dim message As String
Dim strResponse As String

message = "QUIT" + vbCr + vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "205" Then
'Throw New NntpException(R esponse)
End If
Dim strFile As String = String.Format(" {0}.ngd",
CurrentNewsGrou p.Replace(".", ""))

Dim fs As New FileStream(strF ile, FileMode.OpenOr Create)

'Get a Binary Formatter instance
Dim bf As New BinaryFormatter

'Serialize t
bf.Serialize(fs , arNews)

End Sub 'Disconnect

Public Function GetNewsgroups() As ArrayList
Dim message As String
Dim strResponse As String

Dim retval As New ArrayList

message = "LIST" & vbCr & vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "215" Then
Throw New NntpException(R esponse)
End If

While True
strResponse = Response()
If strResponse = "." + vbCr + vbLf OrElse strResponse = "." +
vbLf Then
Return retval
Else
Dim seps As Char = " "c
Dim values As String() = strResponse.Spl it(seps)
retval.Add(valu es(0))
End If
End While

End Function 'GetNewsgroups

Private Function Response() As String
Dim enc As New System.Text.ASC IIEncoding
Dim serverbuff() As Byte = New [Byte](1023) {}
Dim stream As NetworkStream = GetStream()
Dim count As Integer = 0
While True
Dim buff() As Byte = New [Byte](1) {}
Dim bytes As Integer = stream.Read(buf f, 0, 1)
If bytes = 1 Then
serverbuff(coun t) = buff(0)
count += 1

If buff(0) = Asc(vbLf) Then
Exit While
End If
Else
Exit While
End If
End While

Dim retval As String = enc.GetString(s erverbuff, 0, count)
'Debug.WriteLin e("READ:" + retval)
Return retval

End Function 'Response

Public Property CurrentNewsGrou p() As String
Get
Return mstrGroupName
End Get
Set(ByVal Value As String)
mstrGroupName = Value
End Set
End Property

Public Sub GetNewsHeaders( )
Dim message As String
Dim strResponse As String = "211"

If CurrentNewsGrou p Is Nothing Then
MessageBox.Show ("Set news group first")
Return
End If

message = "GROUP " + CurrentNewsGrou p + vbCr + vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "211" Then
Throw New NntpException(s trResponse)
End If

Dim seps As Char = " "c
Dim values As String() = strResponse.Spl it(seps)

Dim start As Long = Int32.Parse(val ues(2))
Dim [end] As Long = Int32.Parse(val ues(3))

If start + 500 < [end] AndAlso [end] > 500 Then
start = [end] - 500
End If

Dim strFile As String = String.Format(" {0}.ngd",
CurrentNewsGrou p.Replace(".", ""))
If File.Exists(str File) Then
Dim fs As New FileStream(strF ile, FileMode.Open)

'Get a Binary Formatter instance
Dim bf As New BinaryFormatter

'Deserialize c from strFilename2
'Note that the deserialized object must be cast to the proper
type.
arNews = CType(bf.Deseri alize(fs), NewsGroupMessag eTable)

'Close the file and release resources (avoids GC delays)
fs.Close()

End If
Dim l As Long = 0
For Each c As NewsGroupMessag e In arNews.Values
l += 1
RaiseEvent MessageHeaderRe cieved(Me, New
NNPTEventArgs(a rNews.Count, l, c))
Next

Dim i As Long
For i = [end] To start Step -1
If Not arNews.Contains (i.ToString) Then
message = "HEAD " & i & vbCr & vbLf
Write(message)
strResponse = Response()

If strResponse.Sub string(0, 3) <> "423" Then

If strResponse.Sub string(0, 3) <> "221" Then
Throw New NntpException(s trResponse)
Else
Dim article As New NewsGroupMessag e
article.ID = i
Dim intLine As Integer = 0
Dim strMessage As String

While True
strResponse = Response()
If strResponse = "." + vbCr + vbLf Then
Exit While
End If

If strResponse = "." + vbLf Then
Exit While
End If

If strResponse.Ind exOf("From:") = 0 Then
article.From = strResponse.Sub string(6)
ElseIf strResponse.Ind exOf("Subject") = 0 Then
article.Subject = strResponse.Sub string(9)
ElseIf strResponse.Ind exOf("Reference s:") = 0
Then
article.Message Reference =
strResponse.Sub string(12)
ElseIf strResponse.Ind exOf("Message-ID:") = 0
Then
strMessage = strResponse.Sub string(12)
ElseIf strResponse.Ind exOf("Newsgroup s:") = 0
Then
article.Message To =
strResponse.Sub string(12)
ElseIf strResponse.Ind exOf("Date:") = 0 Then
Dim intEnd As Integer =
strResponse.Ind exOf("-") - 6
If intEnd < 0 Then
intEnd = strResponse.Ind exOf("+") - 6
End If
If intEnd < 0 Then
intEnd = strResponse.Ind exOf("GMT") - 6
End If
article.Message Date =
DateTime.Parse( strResponse.Sub string(6, intEnd))
End If
intLine += 1
End While
If article.Message Reference = "None" Then
article.Message Reference = strMessage
arNews.Add(arti cle.ID.ToString , article)
Dim z As Long = [end] - start
RaiseEvent MessageHeaderRe cieved(Me, New
NNPTEventArgs([end] - start, z - (i - start), article))
End If
End If
End If
Next i
End Sub 'GetNews

Public Function GetNewsArticle( ByVal MessageID As Long) As String
Dim message As String
Dim strResponse As String

If CurrentNewsGrou p Is Nothing Then
MessageBox.Show ("Set news group first")
Return Nothing
End If

message = "GROUP " + CurrentNewsGrou p + vbCr + vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "211" Then
Throw New NntpException(s trResponse)
End If

message = "BODY " & MessageID.ToStr ing & vbCr & vbLf
Write(message)
Dim article As String
strResponse = Response()

If strResponse.Sub string(0, 3) <> "423" Then

If strResponse.Sub string(0, 3) <> "222" Then
Throw New NntpException(s trResponse)
Else
Dim intLine As Integer = 0
Dim strMessage As String

While True
strResponse = Response()
If strResponse = "." + vbCr + vbLf Then
Exit While
End If

If strResponse = "." + vbLf Then
Exit While
End If

article &= strResponse
End While
DirectCast(arNe ws.Item(Message ID.ToString),
NewsGroupMessag e).Body = article
End If
End If
Return article

End Function 'GetNews

Public Sub Post(ByVal newsgroup As String, ByVal subject As String,
ByVal from As String, ByVal content As String)
Dim message As String
Dim strResponse As String

message = "POST " & newsgroup & vbCr & vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "340" Then
Throw New NntpException(R esponse)
End If

message = "From: " & from & vbCr & vbLf & "Newsgroups : " & newsgroup
& vbCr & vbLf & "Subject: " & subject & vbCr & vbLf & vbCr & vbLf & content
& vbCr & vbLf & "." & vbCr & vbLf
Write(message)
strResponse = Response()
If strResponse.Sub string(0, 3) <> "240" Then
Throw New NntpException(R esponse)
End If

End Sub 'Post

Private Sub Write(ByVal message As String)
Dim en As New System.Text.ASC IIEncoding

Dim WriteBuffer(102 3) As Byte
WriteBuffer = en.GetBytes(mes sage)

Dim stream As NetworkStream = GetStream()
stream.Write(Wr iteBuffer, 0, WriteBuffer.Len gth)

'Debug.WriteLin e("WRITE:" & message)

End Sub 'Write
End Class

Public Class NewsGroupMessag eCollection
Inherits System.Collecti ons.CollectionB ase
Public Sub Add(ByVal value As NNTP.NewsGroupM essage)
list.Add(value)
End Sub

Public Sub Remove(ByVal Index As Integer)
If Index > Count - 1 Or Index < 0 Then
Throw New Exception("Inva lid Index")
Else
list.RemoveAt(I ndex)
End If
End Sub

Public ReadOnly Property Item(ByVal Index As Integer) As
NNTP.NewsGroupM essage
Get
Return CType(list.Item (Index), NNTP.NewsGroupM essage)
End Get
End Property
End Class


Public Class NntpException
Inherits System.Applicat ionException

Public Sub New(ByVal str As String)
MyBase.New(str)

End Sub 'New
End Class 'NntpException

Ken
------------------
"Jim" <re***@groups.p lease> wrote in message
news:yq******** ***********@big news4.bellsouth .net...
Have you seen any NNTP classes that I may use or build upon to build a
simple newsreader/downloader?

Is there such a class in the .Net framework that I have overlooked? If
not,
inclusion of RFC documented protocols would certainly be a good idea for a
class hierarchy in the .Net classes.

You could adopt and extend the classes at will. Who knows......mayb e even
improve one and get a new RFC implemented.

Any help you could give would be great. (FYI the RFCs for NNTP protocols
are at http://www.ietf.org/rfc/rfc0977.txt?number=977 and the RFC for the
USENET mail standard is at
http://www.ietf.org/rfc/rfc0850.txt?number=850.)

Thanks!

Dec 13 '05 #7
Jim
Thanks for the jumping off point!

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:O8******** *****@TK2MSFTNG P12.phx.gbl...
Hi,

Here is some vb.net code I wrote based on this c# code.

http://www.developerfusion.co.uk/show/4472/

Dec 13 '05 #8
> Have you seen any NNTP classes that I may use or build upon to build a

simple newsreader/downloader?

Jim there is an NNTP demo included in IPWorks.
The NNTP component implements all of the protocol for you - leaving you with a
very simple API to work with. If you need more sample code, let me know, we've
got plenty.

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Dec 13 '05 #9
Jim
Thanks Lance, but this is for a freeware project. While I am certain that
your components are of impeccable quality and that they are very easy to
use, I cannot justify the $400 price tag for a freeware project.

With the .Net components that I have worked with thus far (and I have not
worked with IPWorks yet) I cringe at the very thought of spending more than
$100 on any component. The components that I have used this far miss the
marks of ease-of-use set by the COM components I was used to (pre- this .Net
disaster) by a mile.

They are neither intuitive nor easy to use. I will reserve judgment on
IPWorks until I have some extra time to play with a demo, but, to be quite
honest, if IPWorks is intuitive or as easy to use as the old COM components
that used extensively I would be shocked.

It is also a sad commentary on the devastation that Microsoft has wrought
throughout its own industry that the component developers didn't have
anything ready for .Net 2.0 at its launch. That means that they aren't
making enough money off of components to put the needed resources on the
projects that need upgrading for .Net 2.0. And, that means that the masses
of VB programmers that used to buy components like crack whores needing a
fix just aren't programming any more.

I suppose that's a major reason for the free Express editions of VS 2005.
Trying to get back what they scattered.

Alas, it may be too little, too late. As Microsoft is (and its component
developers are) learning.....it 's damned hard to put Humpty back together
again.
"Lance R." <la****@nsoftwa re.removeme.com > wrote in message
news:OO******** ******@TK2MSFTN GP10.phx.gbl...
Have you seen any NNTP classes that I may use or build upon to build a

simple newsreader/downloader?

Jim there is an NNTP demo included in IPWorks.
The NNTP component implements all of the protocol for you - leaving you
with a
very simple API to work with. If you need more sample code, let me know,
we've
got plenty.

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-

Dec 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2317
by: Mark | last post by:
I'm looking for a set of php scripts that can read an nntp server, pull all the posts from a newsgroup (text only, no images) and convert them to html pages. Perfect example is : http://www.woodworking-forum.com/woodworking/ I'd like to do this with a couple of my hobbies so that I can archive the articles - yeah, I know google does it, but I want my own copy... If you know of something like this, please email me - bunchah@yahoo.com
2
1897
by: Gary Stark | last post by:
Does anyone have such a beastie? I can't even get to first base. The following doesn't work ... $hostNNTP = "news.swiftdsl.com.au:119/nntp"; $nntp = imap_open( "{" . $hostNNTP . "}comp.lang.clipper.visual-objects", "", "", OP_HALFOPEN) or header("Location: error.php?ec=3"); It displays an error message "Warning: imap_thread returned an empty tree in
42
9690
by: Steven O. | last post by:
I am seeking some kind of tool that I can use for GUI prototyping. I know how to use Visual Basic, but since a lot of software is being coded in Java or C++, I'd like to learn a Java or C++ -based tool. Back when I took my Java and C++ classes (two or three years ago), the available tools -- at least the ones I could find -- were still not as easy, not as "drag-and-drop", as Visual Basic. Has that changed? Is there some software out...
6
2014
by: Greg M | last post by:
I have 5 years of MS Access/VBA development experience and am moving into the VB.net world. I am seeking a tutor which could facilitate this move. I live in Anderson, IN and am willing to travel to Indianapolis or within 50 miles of my home. I have some specific questions that I would like answered/explained to me. I would also like to develop a mentoring relationship which would allow me to ask questions in the future as well (for a...
4
1166
by: Jim | last post by:
Have you seen any NNTP classes that I may use or build upon to build a simple newsreader/downloader? Is there such a class in the .Net framework that I have overlooked? If not, inclusion of RFC documented protocols would certainly be a good idea for a class hierarchy in the .Net classes. You could adopt and extend the classes at will. Who knows......maybe even improve one and get a new RFC implemented.
6
1228
by: Jim | last post by:
Have you seen any NNTP classes that I may use or build upon to build a simple newsreader/downloader? Is there such a class in the .Net framework that I have overlooked? If not, inclusion of RFC documented protocols would certainly be a good idea for a class hierarchy in the .Net classes. You could adopt and extend the classes at will. Who knows......maybe even improve one and get a new RFC implemented.
4
4349
by: BiT | last post by:
Hi i'm trying to code simple nntp client with vb.net and sockets client class the problem is the machine keep stuck (probbley beacuse it ain't gettin` data from the server) after the user name sent to the server when it's try to read the stream, i checked it out in telnet and server send stream after i send the user name any idea why it's not workin`? here's the code:
15
1205
by: Devon Null | last post by:
I was simply wondering if this was a mal-formed class header: #ifndef _items_h_ #define _items_h_ #include <iostream> #include <string> #include <vector> using namespace std;
7
3103
by: Adrian | last post by:
What is a stringsteam supposed to do when you seek past the end of existing buffer. I can seek past the end of a file stream (my implementation fills the space will nulls but I cannot find if this is guaranteed either) Below code fails for a stringstream. Any good ways of dealing with this. Reason for doing this is that I am modify old C code for screen output that positions fields based on a row. I wanted to use a stringstream
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.